			<h2><{$app.mod.name.value}></h2>				
				<div class="naviBack"><a href="index.php"><{$smarty.const._MI_OPINION_BACKTO_INDEX}></a></div>

				<div class="graph">
					<h4 class="hatena"><{$app.poll.question}></h4>
					<h4 class="day"><{$smarty.const._MI_OPINION_POLL_TERM}>&nbsp;&nbsp;<{"Y-m-d H:i"|date:$app.poll.start_time}> - <{"Y-m-d H:i"|date:$app.poll.end_time}></h4>
					<p><{$app.poll.description|nl2br}></p>
					<{if $app.modconf.graphAPI=="google"}>
					<!-- Google graph API -->
					<{* <img src="http://chart.apis.google.com/chart?cht=p3&amp;chd=t:<{$app.googleAPI.values}>&amp;chs=400x200&amp;chl=<{$app.googleAPI.labels|to_utf8}>&amp;chtt=<{$app.poll.question}>&amp;chf=bg,s,efefef"/> *}>
					<!-- /Google graph API -->
					<{else}>
					<table class="outer" width="480">
					<{foreach from=$app.options.1 item=o}>
					<tr class="<{cycle values='even,odd'}>">
						<th><span class="t_<{$o.option_color|substr:0:-4}>"><{$o.option_text}>&nbsp;</span></th>
						<td>
							<img src="<{$xoops_url}>/modules/<{$app.dirname}>/images/colorbars/<{$o.option_color}>" width="<{$o.percent}>%" height="10">
							<span class="resultNum"><{$o.percent}>%&nbsp;(<{$o.option_count}>)</span>
						</td>
					</tr>
					<{/foreach}>
					</table>
					<{/if}>
				</div>


				<h3 class="detail"><{$smarty.const._MI_OPINION_SHOW_DATE_DATA}></h3>
				<div class="detailDataNavi">
				<form action="./result.php" method="get">
				<input type="hidden" name="poll_id" value="<{$form.poll_id}>">
				<{form_xdate name="start"}>&nbsp;-&nbsp;<{form_xdate name="end"}><br><br>
				<input type="submit" value="<{$smarty.const._MI_OPINION_SHOW_DATE_BETWEEN}>" name="show_daily">
				</form>
				</div>

				<!-- result -->
				<{foreach from=$app.daily_result item=ddata key=day}>
				<div class="graph">
					<p class="day"><{$day}></p>
					<table class="outer">
					<{foreach from=$ddata item=data}>
					<tr class="<{cycle values='even,odd'}>">
						<th><span class="t_<{$data.option_color|substr:0:-4}>"><{$data.option_text}></span></th>
						<td>
						<img src="<{$xoops_url}>/modules/<{$app.dirname}>/images/colorbars/<{$data.option_color}>" width="<{$data.c}>" height="10">
						<span class="resultNum"><{$data.c}></span></td>
					</tr>
					<{/foreach}>
					</table>
				</div>
				<{/foreach}>
				<!-- /result -->
				
<!-- start comments loop -->
<{if $comment_mode == "flat"}>
  <{include file="db:legacy_comments_flat.html"}>
<{elseif $comment_mode == "thread"}>
  <{include file="db:legacy_comments_thread.html"}>
<{elseif $comment_mode == "nest"}>
  <{include file="db:legacy_comments_nest.html"}>
<{/if}>
<!-- end comments loop -->
